home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / jpl_c.zip / PUTS.C < prev    next >
Text File  |  1986-05-18  |  768b  |  25 lines

  1. /* 1.0  12-10-84 */
  2. /************************************************************************
  3.  *            Robert C. Tausworthe                *
  4.  *            Jet Propulsion Laboratory            *
  5.  *            Pasadena, CA 91009        1984        *
  6.  ************************************************************************/
  7.  
  8. #include "defs.h"
  9. #include "stdtyp.h"
  10. #include "stdio.h"
  11.  
  12. /************************************************************************/
  13.     METACHAR
  14. puts(s)            /* Put the string s, followed by newline, to the
  15.                stdout device. Return newline if ok, EOF if not*/
  16. /*----------------------------------------------------------------------*/
  17. FAST STRING s;
  18. {
  19.     while (*s)
  20.         if (putchar(*s++) IS EOF)
  21.             return EOF;
  22.  
  23.     return putchar('\n');
  24. }
  25.